﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace Jiaohuanji
{
    [Designer(typeof(TongJi_EMS._TJ_Basic.TJ_BasicControlDesigner))]
    public partial class jiaohuanji : TongJi_EMS._TJ_Basic.TJ_BasicControl
    {
        public jiaohuanji()
        {
            InitializeComponent();
        }

        private void jiaohuanji_Load(object sender, EventArgs e)
        {
            Zongbao.zongbao zb = new Zongbao.zongbao();
            if (zb.Bol == "0")
            {
                BackgroundImage = TongJi_EMS.Properties.Resources.交换机_关_;
            }
            else
            {
                BackgroundImage = TongJi_EMS.Properties.Resources.交换机_开_;
            }
        }

        private void jiaohuanji_Paint(object sender, PaintEventArgs e)
        {

            ////e.Graphics.FillRectangle(Brushes.DarkBlue, 0, 0, x * 2f, y * 2f);
            //e.Graphics.FillRectangle(Brushes.White, x*1/7f, y*0.5f, x * 2/7f, y);
            //e.Graphics.FillRectangle(Brushes.White, x * 4 / 7f, y * 0.5f, x * 2 / 7f, y);
            //e.Graphics.FillRectangle(Brushes.White, x , y * 0.5f, x * 2 / 7f, y);
            //e.Graphics.FillRectangle(Brushes.White, x * 10 / 7f, y * 0.5f, x * 2 / 7f, y);
            
        }

        private void jiaohuanji_Resize(object sender, EventArgs e)
        {
            this.x = this.Width / 2;
            this.y = this.Height / 2;
            //Refresh();
        }


    }
}